﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="StudentRegistrationProcess.aspx.cs" Inherits="UniversityManagementSystem.UI.StudentRegistrationProcess" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/fontStyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui-1.8.12.custom.min.js" type="text/javascript"></script>
    
    <script type="text/javascript" language="javascript">
            function dateTime() {
                $(document).ready(function () {
                    $(".datepicker").datepicker();
                });
            }
            window.onpaint = dateTime();
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="fontStyle" style="height:900px;">   
        <asp:Label ID="nameLabel" runat="server" Text="Name" CssClass="labelAlignment"></asp:Label>
        <asp:TextBox ID="studentNameTextBox" runat="server"
            CssClass="textBoxAlignment"></asp:TextBox>
    
        <asp:RequiredFieldValidator ID="nameRequiredFieldValidator" runat="server" 
            BorderStyle="None" ErrorMessage="Name Is Required" ForeColor="Red" 
            ControlToValidate="studentNameTextBox">*</asp:RequiredFieldValidator>
    
        <br />
    
        <br />
    
        <asp:Label ID="emailLabel" runat="server" Text="Email" 
            CssClass="labelAlignment"></asp:Label>

        <asp:TextBox ID="emailTextBox" runat="server" CssClass="textBoxAlignment"></asp:TextBox>
    
        <asp:RequiredFieldValidator ID="emailRequiredFieldValidator" runat="server" 
            BorderStyle="None" ErrorMessage="Valid Email Is Required" ForeColor="Red" 
            ControlToValidate="emailTextBox">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="emailRegularExpressionValidator" 
            runat="server" ErrorMessage="Invalid Email" ForeColor="Red" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ControlToValidate="emailTextBox"></asp:RegularExpressionValidator>
        <br />
        <br />
    
        <asp:Label ID="departmentLabel" runat="server" Text="Department" 
            CssClass="labelAlignment"></asp:Label>
        <asp:DropDownList ID="departmentDropDownList" runat="server" 
            CssClass="comboBoxAlignment" >
        </asp:DropDownList>
        <br />
        <br />
        
        

        <asp:Label ID="Label2" runat="server" Text="Registration Date" 
            CssClass="labelAlignment"></asp:Label>  
        <asp:TextBox ID="registrationDateTextBox" OnClick = "dateTime()" 
            CssClass="textBoxAlignment" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="registrationDateRequiredFieldValidator0" 
            runat="server" BorderStyle="None" ErrorMessage="Date of Registration Is Required" 
            ForeColor="Red" ControlToValidate="registrationDateTextBox">*</asp:RequiredFieldValidator>
        <br />
        <br />
        
        

    
        <asp:Label ID="contactNumberLabel" runat="server" Text="Contact No" 
            CssClass="labelAlignment"></asp:Label>
        <asp:TextBox ID="contactNoTextBox" runat="server" 
            CssClass="textBoxAlignment"></asp:TextBox>
    
        <asp:RequiredFieldValidator ID="contactNoRequiredFieldValidator" 
            runat="server" BorderStyle="None" ErrorMessage="Contact No Is Required" 
            ForeColor="Red" ControlToValidate="contactNoTextBox">*</asp:RequiredFieldValidator>
        &nbsp;<asp:RegularExpressionValidator ID="contactNoRegularExpressionValidator" 
            runat="server" ErrorMessage="Invalid Contact No" ForeColor="Red" 
            
            ValidationExpression="([\(\+])?([0-9]{1,3}([\s])?)?([\+|\(|\-|\)|\s])?([0-9]{2,4})([\-|\)|\.|\s]([\s])?)?([0-9]{2,4})?([\.|\-|\s])?([0-9]{4,8})" 
            ControlToValidate="contactNoTextBox"></asp:RegularExpressionValidator>
        <br />
        <br />
    
        <asp:Label ID="addressLabel" runat="server" Text="Address" 
            CssClass="labelAlignment"></asp:Label>
        <asp:TextBox ID="addressTextBox" runat="server" 
            EnableTheming="True" TextMode="MultiLine" CssClass="textBoxAlignment"></asp:TextBox>

        <asp:RequiredFieldValidator ID="addressRequiredFieldValidator" runat="server" 
            BorderStyle="None" ErrorMessage="Address Is Required" ForeColor="Red" 
            ControlToValidate="addressTextBox">*</asp:RequiredFieldValidator>

        <br />

        <br />
        <asp:Panel ID="Panel1" runat="server" Height="168px">
            <table width="100%" border="3px">
        <tr>
            <td>
                <asp:Label ID="educationPanelLabel" runat="server" Text="Education"></asp:Label>     
            </td>
        </tr>
        
        <tr>
            <td>
                <br />
                <asp:Label ID="examLabel" runat="server" Text="Examination" 
                    CssClass="labelAlignment"></asp:Label>
                <asp:DropDownList ID="examinationDropDownList" runat="server" 
                    CssClass="comboBoxAlignment" Width="70px" >
                    <asp:ListItem>SSC</asp:ListItem>
                    <asp:ListItem Value="HSC">HSC</asp:ListItem>
                    <asp:ListItem>Others</asp:ListItem>
                </asp:DropDownList>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="gradeLetterLabel" runat="server" Text="Grade Letter"></asp:Label>
                &nbsp;
                <asp:DropDownList ID="gradeLetterDropdownList" runat="server" 
                    AutoPostBack="True" Height="26px" Width="50px">
                    <asp:ListItem>A+</asp:ListItem>
                    <asp:ListItem>A</asp:ListItem>
                    <asp:ListItem>A-</asp:ListItem>
                    <asp:ListItem>B</asp:ListItem>
                    <asp:ListItem>C</asp:ListItem>
                    <asp:ListItem>D</asp:ListItem>
                    <asp:ListItem>F</asp:ListItem>
                </asp:DropDownList>
                <br />
                <br />
                <asp:Label ID="cgpaLabel" runat="server" Text="CGPA" CssClass="labelAlignment"></asp:Label>
                <asp:TextBox ID="cgpaTextBox" runat="server" 
                    CssClass="textBoxAlignment"></asp:TextBox>
                <asp:RequiredFieldValidator ID="cgpaRequiredFieldValidator" 
                    runat="server" BorderStyle="None" ControlToValidate="cgpaTextBox" 
                    ErrorMessage="CGPA Is Required" ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:RangeValidator ID="cgpaRangeValidator" runat="server" 
                    ControlToValidate="cgpaTextBox" ErrorMessage="Invalid CGPA" 
                    ForeColor="Red" MaximumValue="5.00" MinimumValue="0.00" Type="Double"></asp:RangeValidator>
                <br />
                <br />
                <asp:Label ID="certificateLocationLabel" runat="server" 
                    Text="Certificate Location" CssClass="labelAlignment"></asp:Label>

                <asp:FileUpload ID="certificateLocationFileUploader" runat="server" 
                    CssClass="textBoxAlignment" />
                <asp:ValidationSummary ID="ValidationSummary" runat="server" ForeColor="Red" 
                    ShowMessageBox="True" ShowSummary="False" />
                <br />
                <br />

                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                <asp:Button ID="addToListButton" runat="server" 
                    Text="Add To List"  onclick="addToListButton_Click" CssClass="button" 
                    Width="150px" />
                <br />
                <asp:Label ID="messageLabel" runat="server"></asp:Label>
                <br />
            </td>
        </tr>
        
        <tr>
            <td>
                <asp:Label ID="listLabel" runat="server"></asp:Label>     
            </td>
        </tr>
                
        <tr>
            <td>
                <asp:GridView ID="studentInformationGridView" runat="server" 
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="ExamName" HeaderText="Examination" 
                            SortExpression="ExamName" ReadOnly="True" />
                        <asp:BoundField DataField="GradeLetter" HeaderText="Grade Letter" 
                            ReadOnly="True" SortExpression="GradeLetter" />
                        <asp:BoundField DataField="CGPA" HeaderText="CGPA" ReadOnly="True" 
                            SortExpression="CGPA" />
                        <asp:BoundField DataField="Certificate" HeaderText="Attached Certificate" 
                            ReadOnly="True" SortExpression="Certificate" />
                    </Columns>
                </asp:GridView>
                &nbsp;</td>
        </tr>
        
        <tr>
            <td>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="registerButton" runat="server" 
                    Text="Register" onclick="registerButton_Click" CssClass="button" 
                    Width="150px" />
            </td>
        </tr>
        
    </table>
        </asp:Panel>
        <br />

     </div>
</asp:Content>
